<?php


$arrayStock = array(
1 => "MBB",
2 => "CLP",
3 => "PTK",
4 => "C32",
5 => "SII",
6 => "VPC",
7 => "ALP",
8 => "FCN",
9 => "DHM",
10 => "VTF",
11 => "ASIAGF",
12 => "GAS",
13 => "DXV",
14 => "DPM",
);

include_once $_SERVER['DOCUMENT_ROOT'].'scue'.'/model/BuySell.php';
include_once $_SERVER['DOCUMENT_ROOT'].'scue'.'/model/LiveBoard.php';
include_once $_SERVER['DOCUMENT_ROOT'].'scue'.'/model/Stock.php';

$buysell = new BuySell();
for ($i = 0; $i < 100; $i++)
{
for ($j = 1; $j <= 14; $j++)
{
	$price = floatval(rand(15, 100) / 10);
	$amount = rand(3, 10) * 10;
	$userid = rand(1, 22);
	$buysell->actionBuyLO($j, $userid, $amount, $arrayStock[$j], $price);
	$price = floatval(rand(15, 100) / 10);
	$amount = rand(3, 10) * 10;
	$userid = rand(1, 22);
	$buysell->actionSellLO($j, $userid, $amount, $arrayStock[$j], $price);
}
echo $i."\n";
}
?>